﻿project(tests)


find_package(Catch2 3 REQUIRED)
# These tests can use the Catch2-provided main


include_directories(../src)


macro(AddFileDirectory dir)
        file(GLOB SRC ${dir}/*.*)
        set(LOCAL_SRC_ALL ${LOCAL_SRC_ALL} ${SRC})
endmacro()

AddFileDirectory(../src)
AddFileDirectory(../src/filter)
AddFileDirectory(.)


add_executable(tests ${LOCAL_SRC_ALL})
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain)

add_test(NAME tests
        COMMAND $<TARGET_FILE:tests> --success
)
